home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / folder watching / fw receiver / barebones.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.3 KB  |  74 lines

  1. /*
  2.     File:        BareBones.c
  3.  
  4.     Contains:    The main routine
  5.  
  6.     Written by: Chris White    
  7.  
  8.     Copyright:    Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/21/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24.  
  25. #pragma segment Core
  26.  
  27.  
  28. #define __MAIN__
  29.  
  30.  
  31.  
  32. // System includes
  33. #ifndef __MEMORY__
  34.     #include <Memory.h>
  35. #endif
  36.  
  37.  
  38.  
  39.  
  40. // Application includes
  41. #ifndef __PROTOTYPES__
  42.     #include "Prototypes.h"
  43. #endif
  44.  
  45.  
  46.  
  47.  
  48.  
  49. #if !defined(THINK_C) && !defined(__MWERKS__)        // These declares "qd" in their runtime
  50.     QDGlobals    qd;
  51. #endif
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. void main ( void )
  59. {
  60.     MaxApplZone ( );
  61.     
  62.     // Do we use handles?
  63.     MoreMasters ( );
  64.     
  65.     InitToolbox ( );                        // Init toolbox stuff
  66.     InitApplication ( );                    // Init application specific stuff
  67.     EventLoop ( );
  68.     
  69.     return;
  70. }
  71.  
  72.  
  73.  
  74.